<?php 
	class ImagenDB extends CI_Model {



    function __construct()
    {
        parent::__construct();
    }
    
    public function getImagenById()
    {
    	$this->load->database('local');
    	$query=$this->db->query('SELECT Img FROM productos');
    	//$result_array = mysql_fetch_array("SELECT Img FROM productos where idProductos = 2");
    	$this->db->close();
    	return $query;
    }
        
}?>